/*
 * rom.c
 *
 * Created: 8/21/2013 2:36:37 PM
 *  Author: Ken Arok
 *
 * \brief The driver of ROM/EEPROM Device.
 *
 * Copyright (c) 2013 PT Hanindo Automation Solutions. All rights reserved.
 *
 */


#include "rom_hal.h"
#include "rom.h"


char vReadROM(uint32_t _start_addr, void *_pbuf, uint32_t _len)
{
	return rom_read(_start_addr, _pbuf, _len);
}


char vWriteROM(uint32_t _star_addr, const void *_pbuf, uint32_t _len)
{
	return rom_write(_star_addr, _pbuf, _len);
}


void vEraseROM(uint32_t _block_addr)
{
	rom_erase_block(_block_addr);
}
